export const rules = {
  title: [{
    required: true,
    message: "please enter title",
    trigger: "blur"
  }],
  startdate: [{
    required: true,
    message: "please enter startdate",
    trigger: "blur"
  }],
  enddate: [{
    required: true,
    message: "please enter enddate",
    trigger: "blur"
  }],
};

export function Model(
  title = "",
  startdate = "",
  enddate = "",
  supper_id = "",
  discount = "",
  remarks = "",
  appendix = "",
  status = "Normal",
) {
  this.title = title;
  this.startdate = startdate;
  this.enddate = enddate;
  this.supper_id = supper_id;
  this.discount = discount;
  this.remarks = remarks;
  this.appendix = appendix;
  this.status = status;

}